import { UserStateType } from '@/store/userReducer'
import request from '../utils/request'

/**
 *  登录
 */
export const loginAPI = (data: UserStateType) => {
  return request<UserStateType>('/api/login', 'post', data)
}
